﻿using System;
using QFramework;
using UnityEngine;

public class BindablePropertyExample : MonoBehaviour
{
	
	IntProperty Count  = new IntProperty()
	{
		Value = 0
	};

	// Use this for initialization
	void Start ()
	{
		Count.OnValueChanged.AddListener(count =>
		{
			Debug.Log(count);
		});
	}
	
	// Update is called once per frame
	void Update () {

		if (Input.GetMouseButtonDown(0))
		{
			Count.Value++;
		}
	}
}
